Checkout
Julian Foad
committed
on 14 Nov 05
Replace some occurrences of SVN_ERR_CL_ARG_PARSING_ERR in favor of
SVN_ERR_CL_INSUFFICIENT_ARGS. INSUFFICIENT_ARGS better matches the
mean… Show more
Replace some occurrences of SVN_ERR_CL_ARG_PARSING_ERR in favor of

SVN_ERR_CL_INSUFFICIENT_ARGS.   INSUFFICIENT_ARGS better matches the

meaning of what we were using ARG_PARSING_ERR for.  Also, update the

generic error message to suggest running help.

Patch by: Hyrum K. Wright <hyrum_wright@byu.edu>

         me

* subversion/include/svn_error_codes.h

 (SVN_ERR_CL_INSUFFICIENT_ARGS): Add suggestion to run 'svn help'.

* subversion/libsvn_subr/opt.c

 (svn_opt_parse_num_args): Replace SVN_ERR_CL_ARG_PARSING_ERR in favor

   of SVN_ERR_CL_INSUFFICIENT_ARGS.

[in subversion/clients/cmdline]

* cleanup-cmd.c

 (svn_cl__cleanup): Don't bother checking for no arguments just after

   we've ensured there is one.

* copy-cmd.c (svn_cl__copy):

* export-cmd.c (svn_cl__export):

* move-cmd.c (svn_cl__move):

   Split the conditional checking for arguments and replace

   SVN_ERR_CL_ARG_PARSING_ERR in favor of SVN_ERR_CL_INSUFFICIENT_ARGS.

   This is consistent with svn_cl__import.

* add-cmd.c (svn_cl__add),

 blame-cmd.c (svn_cl__blame),

 cat-cmd.c (svn_cl__cat),

 checkout-cmd.c (svn_cl__checkout),

 delete-cmd.c (svn_cl__delete),

 import-cmd.c (svn_cl__import),

 lock-cmd.c (svn_cl__lock),

 merge-cmd.c (svn_cl__merge),

 mkdir-cmd.c (svn_cl__mkdir),

 resolved-cmd.c (svn_cl__resolved),

 revert-cmd.c (svn_cl__revert),

 switch-cmd.c (rewrite_urls, svn_cl__switch),

 unlock-cmd.c (svn_cl__unlock): Replace SVN_ERR_CL_ARG_PARSING_ERR in

   favor of SVN_ERR_CL_INSUFFICIENT_ARGS.

Show less