mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-27 08:35:05 +00:00
We were chopping off the command string when passing the argument array into registered commands. getopt expects a program name as the first argument, so change cmd_execute() to only chop off the scoutfs program name now. Now we can parse command arguments in an easy and standard manner. This necessitates a small update of each commands usage of argv/argc. Signed-off-by: Mark Fasheh <mfasheh@versity.com>