mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
Refactor commandline handling
- instead of having the list of commandline arguments, their handlers and their help strings in different places, unify them in a single array - this allows to only change one piece of code when adding new arguments
This commit is contained in:
3
main.c
3
main.c
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Bryan Christ <bryan.christ@mediafire.com>
|
||||
* 2014 Johannes Schauer <j.schauer@email.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2, as published by
|
||||
@@ -67,7 +68,7 @@ int main(int argc,char **argv)
|
||||
"2c6dq0gb2sr8rgsue5a347lzpjnaay46yjazjcjg",server);
|
||||
|
||||
printf("\n\r");
|
||||
mfshell->auth(mfshell);
|
||||
mfshell->exec(mfshell, "auth");
|
||||
|
||||
// begin shell mode
|
||||
mfshell_run(mfshell);
|
||||
|
||||
Reference in New Issue
Block a user