PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] No flags
Date: Tuesday, 11 Feb 2020, 07:08:05


    > Message Posted By: Unknown
    >
    > If we pass an input with no flags i.e. ./Binpack 11 2 should there be an
    > error message?
    >
    > For your executable, there is no error message in the case of no flags.

As stated in the specification,

  [-opt | -ff | -bf | -ffd | -bfd]* is a sequence of ZERO OR MORE flags, each
    either -opt or -ff or -bf or -ffd or -bfd.

(emphasis added).  Thus no flags is not an error.

--Stan-
PREV INDEX NEXT